﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MediaGarden.Playlists.Services;
using MediaGarden.Playlists.Controllers;

namespace MediaGarden.Playlists.Formats
{
    public class XmlPlaylistWriter : IPlaylistWriter
    {
        public string WriterName
        {
            get { return "Xml"; }
        }

        public System.Web.Mvc.ActionResult WriteMvcResult(System.Web.Mvc.ControllerBase controller, PlaylistContext context)
        {
            return new XmlResult(context.Playlist);
        }
    }
}